<?
/**
*
* @package FreeExBT
* @version $Id: common.php 2008-11-24 00:22:48Z RoadTrain $
* @copyright (c) RoadTrain
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
define('FX_DIR', './');
define('INC_DIR', FX_DIR .'includes/');
define('TPL_DIR', FX_DIR .'templates/');
define('TPL_CACHE_DIR', FX_DIR .'cache/tpl/');
//define('CACHE_DIR', './cache/');
//define('TEMPLATES_DIR', './templates/');
define('LANG_DIR', FX_DIR .'languages/Russian/');

define('IN_FREEEX', true);

require_once(FX_DIR .'config.php');
require_once(LANG_DIR .'main.php');

if ($cfg['template_class'] == "Smarty") {
	require_once(INC_DIR .'smarty/Smarty.class.php');
	
	//Template assignments
	$tpl = new Smarty;
	$tpl->template_dir = TPL_DIR;
	$tpl->compile_dir = TPL_CACHE_DIR;
	//assign a new delimiters for a javascript-on-page capability
	$tpl->left_delimiter = "{%";
	$tpl->right_delimiter = "%}";
}

?>